<template>
    <div>
        <el-steps :space="200" :active="1" align-center="true" finish-status="success" class="step">
            <el-step title="个人信息补充"></el-step>
            <el-step title="申请表填写"></el-step>
            <el-step title="个人信息审核通过"></el-step>
            <el-step title="上传材料"></el-step>
            <el-step title="材料通过"></el-step>
            <el-step title="待签合同"></el-step>
            <el-step title="合同签订待放款"></el-step>
        </el-steps>
        
        <el-card class="box-card" body-style="">
            <el-row>
                <div>
                    <el-form :inline="true" :label-position="top" v-model="addProduct"  ref="addProduct" label-width="auto" style="float:left">
                        <el-form-item label="申请金额">
                            <el-input v-model="addProduct.userinfoRealname"></el-input>
                        </el-form-item>

                        <el-form-item label="计划还款期数">
                            <el-input v-model="addProduct.userinfoTel"></el-input>
                        </el-form-item>
                        
                        <el-form-item label="选择方式">
                            <el-input v-model="addProduct.userinfoCardNo"></el-input>
                        </el-form-item>

                      
                        <el-row>
                            <el-button type="primary" @click="pushInfoUser">提交信息</el-button>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <el-button type="warning" >取消</el-button>
                        </el-row>
                    </el-form>
                 
                </div>
                <div>
                  
                </div>
            </el-row>
        </el-card>
    </div>
</template>

<script>


export default {
    data() {
        return {
            add:"1",
            imageUrl: "",
            addProduct: {},
            contractTemplateList: {},
            bankList: {},
            repayMethodList: {},
            contractList: {}
        };
    },
    methods: {
        handleSuccess(res, file) {
            this.imageUrl = res.message;
            this.addProduct.productCover = res.message;
        },
      
       

        /**
         * 提交信息
         */
        pushInfoUser(){
            this.$router.push("/Debit");
            this.$axios.post("products/add", this.addProduct).then((res) => {
                if (res.data.code == 200) {
                    this.$router.push("/Debit");
                }
            }); 
        }
    },
    mounted() {
        this.loadContract();

    }
};
</script>

<style>
.text {
    font-size: 14px;
}

.item {
    margin-bottom: 18px;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: "";
}

.clearfix:after {
    clear: both
}

.box-card {
    width: 1200px;
    margin: 10px auto;
    margin-top: 40px;
}

.step {
    margin-top: 30px;
    margin-left: 20px;
}

.step2 {
    margin-top: 60px;
    margin-left: 180px;
}

.avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.avatar-uploader .el-upload:hover {
    border-color: #409EFF;
}

.avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
}

.avatar {
    width: 178px;
    height: 178px;
    display: block;
}
</style>